<?php foreach ($tourism->result() as $key => $val ): ?>
<li>
    <a href="<?php echo site_url('tourism/goods/info/'.$val->goods_attr_id);?>">
        <div class="pic">
            <img class="lazy" src="/skins/home/images/load.jpg" data-original="<?php echo $this->config->show_image_url($val->images, '300-300');?>">
        </div>
        <div class="detail">
            <p class="text-overflow2 title">
                <?php if( ($val->transport_id==0) && ($val->transport_cost==0.00) ):?><span class="type">包邮</span><?php endif;?><?php echo $val->goods_name;?>
            </p>
            <div class="bottom">
                <div class="am-cf price-wrap">
                    <div class="price"><span><i>￥</i><?php echo $val->shop_price;?></span></div>
                    <div class="tags">
                        <?php if($val->swim>0):?><span>积分可抵<?php echo $val->swim;?>元</span><?php endif;?>
                    </div>
                </div>
                <p class="food-tips"><span><?php echo $val->region_name;?></span><span><?php echo $val->sale_count;?>人已购买</span></p>
                <button class="cart toCart" goods-attr-id="<?php echo $val->goods_attr_id;?>" shangpin-url="<?php echo $this->config->shangpin_url;?>"  passport-url="<?php echo site_url('login/login/index') ?>">
                    <i class="iconfont">&#xe680;</i>
                </button>
            </div>
        </div>
    </a>
</li>
<?php endforeach ?>